package com.youuvs.basic.utils;

import lombok.Data;

@Data
/*
* getter,setter,toString,hashCode,
* */
public class JsonResult {
    private Boolean success = true;
    private String msg = "操作成功";

    public JsonResult(Boolean success, String msg) {
        this.success = success;
        this.msg = msg;
    }

    public JsonResult() {
    }

   /* public void setSuccess(Boolean success) {
        this.success = success;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }*/

    public JsonResult me(){
        this.setSuccess(false);
        this.setMsg("操作失败");
        return this;
    }
}
